<script setup>

</script>

<template>
  <div class="block">
    <el-carousel height="400px" style="width: 600px; border-radius: 5px;" motion-blur>
      <!--      v-for="item in 4" :key="item"-->
      <el-carousel-item >
        <img  class="full-image" src="@/assets/img/expertphoto.png" alt="">
      </el-carousel-item>

      <el-carousel-item >
        <img  class="full-image" src="@/assets/img/banner5.png" alt="">
      </el-carousel-item>

      <el-carousel-item >
        <img  class="full-image" src="@/assets/img/banner6.png" alt="">
      </el-carousel-item>

    </el-carousel>
  </div>

  <!--  <div>-->
  <!--    <el-image  class="full-image" src="../src/assets/img/test.png"></el-image>-->
  <!--  </div>-->

</template>

<style scoped lang="less">
.block{
  margin-top: 20px;
  margin-bottom: 20px;
}
//图片按比例缩放并铺满整个容器
.full-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item el-image {
  //color: #475669;
  //opacity: 0.75;
  //line-height: 150px;
  //margin: 0;
  //text-align: center;
  width: 100%;
  height: 100%;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>